package com.apeli.system.domain.vo;

import com.apeli.system.domain.Comment;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class ArticleVO {

    /**
     * 主键
     */
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "title can not be null")
    private String title;

    /**
     * 描述
     */
    @NotBlank(message = "description can not be null")
    private String description;

    /**
     * 文本
     */
    @NotBlank(message = "content can not be null")
    private String content;

    /**
     * 标签
     */
    @NotEmpty(message = "tag can not be null")
    private List<String> tag;

    /**
     * 权限 1 公开  0隐私
     */
    private Boolean authentic;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 点赞数
     */
    private Long likes;

    /**
     * 收藏
     */
    private Integer collection;

    /**
     * 头像
     */
    private List<String> avatar;

    private List<String> imageUrlList;

    private List<ImageVO> imageVOList;

    private List<Comment> commentList;

}
